//引入express
const express=require("express")

//创建router
const router=express.Router()

//挂载路由
router.get("/user",(req,res)=>{
    res.send({name:"2017050331",nickname:"你好"})
})

router.post("/ship",(req,res)=>{
    res.send({name:"敦刻尔克号",country:"法国"})
})

//导出路由
module.exports=router